package com.atguigu.gmall.product.controller;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * projectName: gmall
 *
 * @author: 陈鹏
 * time: 2022/9/26 15:45 星期一
 * description: Redis测试的Controller
 */
@RestController
@RequestMapping("/test/product")
public class TestController {

    @Resource
    private TestService testService;

    @GetMapping
    public Result test(){
        testService.setByRedisson();
        return Result.ok();
    }
}
